﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XEvents.Library.Targets
{
    public class EventPayloadItemCollection : List<EventPayloadItem>
    {
        public EventPayloadItemCollection(IEnumerable<EventPayloadItem> items)
            : base(items)
        { }

        public EventPayloadItem this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
